home *** CD-ROM | disk | FTP | other *** search
- function main()
- {
- this.hitCheck();
- }
- function hitCheck()
- {
- if(this.hitTest(_root.tobbyMC) || this.hitTest(_root.handMC))
- {
- this.SE_kaito.start();
- _root.getPresentNum = this.presentNum;
- _parent.mesClose();
- this.removeMovieClip();
- }
- }
- function setPnum1()
- {
- if(_root.getHosekiCNt < 25)
- {
- if(_root.getHosekiCnt % 2 == 1)
- {
- return 7;
- }
- return 8;
- }
- if(_root.getHosekiCnt < 30)
- {
- return 4;
- }
- return 3;
- }
- function setPnum2()
- {
- if(_root.getHosekiCnt < 55)
- {
- if(_root.getHosekiCnt % 2 == 1)
- {
- return 5;
- }
- return 6;
- }
- if(_root.getHosekiCnt < 60)
- {
- return 2;
- }
- return 1;
- }
- this.SE_kaito = new Sound(this);
- this.SE_kaito.attachSound("SE_kaito");
- if(_root.gStageNum == 4)
- {
- this.presentNum = setPnum1();
- }
- else
- {
- this.presentNum = setPnum2();
- }
- this.presentMC.gotoAndPlay("p" + String(this.presentNum));
-